public class Demo {
    public static void han(String A, String B, String C, int n) {
        if(n < 1) {
            return;
        }
        if(n == 1) {
            System.out.println(A + "->" + C);
            return;
        }
        han(A, C, B,n - 1);
        System.out.println(A + "->" + C);
        han(B, A, C, n - 1);
    }
    public static void main(String[] args) {
        han("A", "B", "C", 3);
    }
    public static int max(int a, int b) {
        return a > b ? a : b;
    }
    public static double max(double a, double b, double c) {
        return a > b ? a : b > c ? a > b ? a : b : c;
    }
    public static void main3(String[] args) {
        System.out.println(max(1, 2));
        System.out.println(max(1.3, 4.6, 4.2));
    }
    public static int sum(int a, int b) {
        return a+b;
    }
    public static int sum(int a, int b, int c) {
        return a + b + c;
    }
    public static void main2(String[] args) {
        System.out.println(sum(1, 2, 3));
        System.out.println(sum(4, 6));
    }

    public static int max(int a, int b, int c){
        return max(max(a,b),c);
    }
    public static void main1(String[] args) {
        System.out.println(max(1,2,3));
    }
}
